import xmltodict
import codecs


def parseXML(path):
    with codecs.open(path, "r", encoding="utf-8") as xmlFile:
        xmlStr = xmlFile.read()
        convertDict = xmltodict.parse(xmlStr)
    return convertDict